/*    */ package xin.petstore.framework.orm.mybatis.paginator.dialect;
/*    */ 
/*    */ import com.eloancn.framework.orm.mybatis.paginator.domain.PageBounds;
/*    */ import org.apache.ibatis.mapping.MappedStatement;
/*    */ 
/*    */ public class HSQLDialect extends Dialect
/*    */ {
/*    */   public HSQLDialect(MappedStatement mappedStatement, Object parameterObject, PageBounds pageBounds)
/*    */   {
/* 14 */     super(mappedStatement, parameterObject, pageBounds);
/*    */   }
/*    */ 
/*    */   protected String getLimitString(String sql, String offsetName, int offset, String limitName, int limit) {
/* 18 */     boolean hasOffset = offset > 0;
/* 19 */     return new StringBuffer(sql.length() + 10)
/* 20 */       .append(sql)
/* 21 */       .insert(sql.toLowerCase().indexOf("select") + 6, " top " + String.valueOf(limit))
/* 22 */       .toString();
/*    */   }
/*    */ }

/* Location:           C:\java代码反编译器\core-1.1.4.jar
 * Qualified Name:     com.eloancn.framework.orm.mybatis.paginator.dialect.HSQLDialect
 * JD-Core Version:    0.6.0
 */